package com.deryun.tyl.dao.impl;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;

import com.deryun.tyl.bean.MutiPic;
import com.deryun.tyl.bean.mapper.MutiPicMapper;

public class MutiPicDaoImpl extends SqlSessionDaoSupport{
	
	@Autowired
	private MutiPicMapper mutiPicMapper;
	
	public List<MutiPic> getPicByType(int type){
		return mutiPicMapper.getPicByType(type);
	}
	

	public int addPic(MutiPic mutiPic){
		return mutiPicMapper.addPic(mutiPic);
	}
	

	public int delPic(int id){
		return mutiPicMapper.delPic(id);
	}
}
